package cus;

/**
 * @Author: Yangu
 * @Created time: 2020/11/10 18:20
 * @Description :
 */
public class SyncDemo {

    private Object lock = new Object();

    public void testLockObject() {
        synchronized (lock) {
            System.out.println("test");
        }
    }
}
